import { match } from 'path-to-regexp'
// import queryString from 'query-string'

const mm = match('/user/?', { decode: decodeURIComponent })

console.log(mm('/user/123'))
console.log(mm('/invalid')) // false
console.log(mm('/user/您好'))
console.log(mm('/user/你好?name=张三'))

// console.log(queryString.parse('?name=张三'))
